import time
import os

filename = "file_" + time.strftime("%Y%m%d") + ".txt"

if (!os.path.isfile(filename)):
    print "File {} exists".format(filename)

    f = open(filename, "w")
    f.write("Created");    
    f.close()
